#include <stdio.h>
#include <string.h>
#include "netfn_0x06_cmd_0x39.h"
#include "ipmi.h"
#include "ipmi_netfn.h"

uint16 GetSessionChallenge(uint8* request_data, uint16 request_data_size, uint8* response_data)
{
    printf("%s\n",__func__);
    GetSessionChallengeReq* req = (GetSessionChallengeReq*)request_data;
    GetSessionChallengeRes* res = (GetSessionChallengeRes*)response_data;
    res->CompletionCode = CC_NORMALLY;
    uint16 response_data_size = sizeof(GetSessionChallengeRes);

    return response_data_size;
}

void init_command(cmd_assigments_t* cmd_assigments)
{
    cmd_assigments->privilege = 0x02;
    cmd_assigments->channel = 0x01;
    cmd_assigments->command_entrance = &GetSessionChallenge;
}
